package com.javaee.term.service;

import com.javaee.term.dto.SendProductDetailDto;
import com.javaee.term.model.SendProductList;
import com.javaee.term.service.base.IBaseService;

import java.util.List;

public interface SendProductService extends IBaseService<SendProductList> {

    List<SendProductList> findByContactIdAndProductId(String contactId ,String productId);

    void updateQuantityByContactProduct(String contactId,String productId,Integer productQuantity);

    SendProductDetailDto  findSendDetail(String sendId);

    void sureSendAndUpdateStock(String sendId);

    List<SendProductList> findSendByContactId(String contactId);
}
